home *** CD-ROM | disk | FTP | other *** search
/ Plug Into a Brand New World / Plug Into a Brand New World Version 1.3.BIN / KW-585S25 / Linux / Makefile next >
Makefile  |  2002-02-13  |  942b  |  47 lines

  1. # Kernel includes.  Please avoid
  2. # using '/usr/include' unless all
  3. # other options exhausted.
  4. #
  5. KINCLUDES=/usr/src/linux/include
  6.  
  7. # uncomment line below if you have SMP
  8. #SMPFLAGS=    -D__SMP__ -DCONFIG_SMP=1
  9.  
  10. # Unless you have a 386/486, you shouldn't need
  11. # to change anything below here...
  12.  
  13. CPUFLAGS=    -DCPU=586 -march=i586
  14. MODULE=        pl2303
  15. CC=        gcc
  16.  
  17. KERNFLAGS=    \
  18.     -D__KERNEL__ -I$(KINCLUDES) $(CPUFLAGS) $(SMPFLAGS) \
  19.     -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \
  20.     -fno-strict-aliasing -pipe -DMODULE
  21.  
  22. EXTRA_CFLAGS= -DEXPORT_SYMTAB
  23.  
  24. # DBGCFLAGS = -DDEBUG -DUSB_SERIAL_DEBUG
  25.  
  26. CFLAGS=        $(KERNFLAGS) $(DBGCFLAGS)
  27.  
  28.  
  29. all::        $(MODULE).o usbserial.o
  30.  
  31. $(MODULE).o:    $(MODULE).c usb-serial.h
  32.     $(CC) $(CFLAGS) -c $<
  33.  
  34. usbserial.o: usbserial.c usb-serial.h
  35.     $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $<
  36.  
  37. inst:
  38.     insmod ./usbserial.o
  39.     insmod ./pl2303.o
  40.  
  41. uninst:
  42.     rmmod pl2303
  43.     rmmod usbserial
  44.  
  45. clean:
  46.     rm -f *.o
  47.